put the number of cast(the castNum of sprite 48) into gHelpMovie
if the pausedAtStart of cast gHelpMovie <> 1 then
Alert "[This is a minor problem, but should be noted.]" & RETURN & RETURN & "Please enable " & quote & "paused at start" & quote & " for cast member " & gHelpMovie & " in movie: " & the movie & "."
end if
set the directToStage of cast gHelpMovie to true
put the duration of cast gHelpMovie into gHelpDuration
--put ">>>Duration = " & gHelpDuration
--put ">>> set the preload"
--set the preLoad of cast gHelpMovie to true
--put ">>> do the preload"
--preLoadCast gHelpMovie
--put ">>> done preloading..."
--updateStage
--set the movieRate of sprite 48 to .01
--go to the frame
set the visible of sprite 48 to true
if the machineType <> 256 then
set the movieRate of sprite 48 to .01
end if
updateStage -- go to the frame
set the volume of sprite 48 to gVolume
--updateStage
starttimer
cursor -1
set the movieRate of sprite 48 to 1
end if
end playHelp
on stopHelp
global gFiorellaOnStage, gHelpMovie, gFrameToReturnTo, gHelpDuration, gMovieFrame
global gCom, gNavPalette
global gCurLabelProp, gMovieToReturnTo, gVolume
global gTOCMovie
if the timer < 60 then exit
if the movieTime of sprite 48 < 60 then exit
cursor 4
set gFiorellaOnStage to false
repeat with i = 1 to 8
set the volume of sprite 48 to (the volume of sprite 48)/2
set t = the ticks + 10
repeat while the ticks < t
go to the frame
end repeat
end repeat
set the visible of sprite 48 to false
set the movieRate of sprite 48 to 0
set the volume of sprite 48 = gVolume
updateStage
--set the movieTime of sprite 48 to 0
--set the preLoad of cast gHelpMovie to false
--unloadCast gHelpMovie
--set the directToStage of cast gHelpMovie to false
--set the preLoadRam = 0
if gTOCMovie then
go to frame gFrameToReturnTo of movie gMovieToReturnTo
end if
if the movie = (gCurLabelProp & ".DIR") then
go to frame gCurLabelProp && "Video" of movie gMovieToReturnTo
go to gFrameToReturnTo
showButtons
if char 1 of the movie = "O" then tell gNavPalette to lOpenNavPalette
-- goGo(gCurLabelProp, 1)
else
if not(gCom) then
--set the visible of sprite 48 to true
--puppetSprite 48,false
else
--set the castNum of sprite 48 = 0
showButtons
tell gNavPalette to lOpenNavPalette
end if
go frame gFrameToReturnTo
end if
put empty into gFrameToReturnTo
put empty into gMovieToReturnTo
--updateStage
put empty into gHelpMovie
put 0 into gHelpDuration
put 0 into gMovieFrame
cursor -1
end stopHelp
on TOCHelpIdleXXXX
global gFiorellaOnStage, gMovieFrame, gHelpDuration
if gFiorellaOnStage then
put the movieTime of sprite 48 into it
if it < 2040 then --intro
go frame gMovieFrame
else if it < 2107 then --Celestial Objects
go frame gMovieFrame+1
else if it < 2354 then
go frame gMovieFrame+2
else if it < 2413 then --Guided Tour
go frame gMovieFrame+3
else if it < 2450 then
go frame gMovieFrame+4
else if it < 2624 then --Movies
go frame gMovieFrame+5
else if it < 2650 then
go frame gMovieFrame+6
else if it < 2698 then --Music
go frame gMovieFrame+7
else if it < 2947 then
go frame gMovieFrame+8
else if it < 3024 then --Poetry
go frame gMovieFrame+9
else if it < 3448 then
go frame gMovieFrame+10
else if it < 3538 then --Menubar
go frame gMovieFrame+11
installMenu cast "TOC Help Menu"
else if it < 3556 then
go frame gMovieFrame+12
else if it < 3620 then --Fiorella
installMenu 0
updateStage
go frame gMovieFrame+13
else if (it < gHelpDuration) then
go frame gMovieFrame+14
else stopHelp
end if
end TOCHelpIdle
on TOCHelpIdle
global gMovieTimeMax
if the movieTime of sprite 48 < gMovieTimeMax then
exit
else
global gMovieTimeList, gMovieTimeIndex
set gMovieTimeIndex = gMovieTimeIndex + 1
set gMovieTimeMax = getAt(gMovieTimeList, gMovieTimeIndex)
if listP(gMovieTimeMax) then
do getAt(gMovieTimeMax, 2)
set gMovieTimeMax = getAt(gMovieTimeMax, 1)
end if
go to the frame + 1
end if
end TOCHelpIdle
--put ">>> gMovieTimeMax" && gMovieTimeMax && the movieTime of sprite 48 && the frame
on OHelpIdle
global gFiorellaOnStage
global gMovieTimeList, gMovieTimeIndex, gMovieTimeMax
if gFiorellaOnStage then
if the movieTime of sprite 48 < gMovieTimeMax then
go to the frame
else
go to the frame + 1
set gMovieTimeIndex = gMovieTimeIndex + 1
set gMovieTimeMax = getAt(gMovieTimeList, gMovieTimeIndex)
if listP(gMovieTimeMax) then
do getAt(gMovieTimeMax, 2)
set gMovieTimeMax = getAt(gMovieTimeMax, 1)
end if
--put ">>> gMovieTimeMax" && gMovieTimeMax && the movieTime of sprite 48 && the frame
end if
end if
--updateStage
end OHelpIdle
--
--
-- Okay, what does this routine do???
--
on GHelpIdle
global gFiorellaOnStage, gMovieFrame,gHelpDuration